package com.weight.common.model;

import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;

import lombok.Data;
/**
 * easyui 树形模板
 *
 */
@Data
public class TreeDataResult {

	@JSONField(name = "id")
    public String id; //菜单id
	
	@JSONField(name = "pid")
    public String pid;//菜单父节点id
	
	@JSONField(name = "text")
    public String text;//菜单姓名 
    
	@JSONField(name = "state")
    public String state;
    
	@JSONField(name = "checked")
	private String checked; 
	
	@JSONField(name = "attributes")
    public Attributes attributes;
    
    @JSONField(name = "children")
    public List<TreeDataResult> children;//子菜单  
     
    public TreeDataResult(String id, String pid, String text, String state, Attributes attributes,
			List<TreeDataResult> children) {
		super();
		this.id = id;
		this.pid = pid;
		this.text = text;
		this.state = state;
		this.attributes = attributes;
		this.children = children;
	}
    public TreeDataResult(String id,String text) {
		super();
		this.id = id;
		this.text = text;
	}
    public TreeDataResult(){
    	
    }
	 
    
}